package com.hk.pinda;

import com.hk.pinda.auth.client.EnableAuthClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableFeignClients({"com.hk.pinda"})
@EnableZuulProxy // 开启网关代理
@EnableAuthClient // 开启授权客户端
@SpringBootApplication
@EnableDiscoveryClient
public class ZuulServerApplication {

    public static void main(String[] args) {

        SpringApplication.run(ZuulServerApplication.class,args);

    }
}
